package com.blb.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author yanghao
 * @since 2019-11-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_settlement")
public class Settlement extends Model<Settlement> {

    private static final long serialVersionUID=1L;


    @TableId
    private String settlementId;

    @TableField("shoppingType")
    private  String shoppingType;

    @TableField("startPlace")
    private String startPlace;

    @TableField("endPlace")
    private String endPlace;

    //距离
    @TableField("distance")
    private String distance;

    //重量
    @TableField("quality")
    private double quality;


    //运货单号
    private String shippingNum;

    @TableField("pValue")
    //体积
    private String pValue;


    private String settlementMoney;


    @TableField("settlementNumber")
    //商品数量
    private String settlementNumber;


    @TableField("orderNum")
    //订单ID
    private String orderNum;

    @TableField("logisticname")
    //物理公司
    private String logisticname;

    @TableField("logisticway")
    //车辆信息
    private String logisticway;

    @TableField(exist = false)
    private String companyId;






  //状态
    private String settlementStatus;


    @Override
    protected Serializable pkVal() {
        return this.settlementId;
    }

}
